// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import './assets/styles/reset.css'
import Vue from 'vue'
import App from './App'
// 滚动插件
import VueAwesomeSwiper from 'vue-awesome-swiper'

Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper); // 挂载滚动插件


/* eslint-disable no-new */
new Vue({
    el: '#app',
    template: '<App />',
    components: { App }
})

document.body.addEventListener('touchstart', preventDefault);
function preventDefault(e) {
    let node = e.target.nodeName.toLowerCase();
    if (node !== 'input' && node !== 'button' && node !== 'img'){
        e.preventDefault();
    }
}